import axios from "@/requery/index";
export function MainLeftApi({ equipmentId }) {
    return axios({
        url: `/open/biz/searchAssemblyList/${equipmentId}`,
        method: "post",
        headers: {
            "Content-Type": "application/x-www-form-urlencoded"
        }
    })
}



export function searchWorkByName(data) {
    return axios({
        url: `/open/biz/searchWorkByName`,
        method: "post",
        data,
        headers: {
            "Content-Type": "application/x-www-form-urlencoded"
        }
    })
}
//获取word文档流接口函数
export function dcwordfile(url,method,params){
    return request({
        url:'/scyyjg'+url,//接口地址
        method,
        params,
        // responseType: `arraybuffer` //一定要写
        responseType:'blob',//将文件流转成blob对象
        noErrorMsg:true
    })
}